package cc.telecomdigital.tdstock.testcase;

import junit.framework.Assert;
import android.test.AndroidTestCase;

public class RegularExpressTestCase extends AndroidTestCase
{

	public void testReplace0() throws Throwable
	{
		String str="abcd~0123-2322,5";
		String reg = "[^a-zA-Z0-9]";
		Assert.assertEquals(str.replaceAll(reg, ""),"abcd012323225");
	}
	
	public void testReplace1() throws Throwable
	{
		String str="4f781ff4-12bc-3a52-ac3c-2075b24b3b6fxxxx";
		String reg = "[^a-zA-Z0-9]";
		Assert.assertEquals(str.replaceAll(reg, ""),"4f781ff412bc3a52ac3c2075b24b3b6fxxxx");
	}
	
	 

	
}
